<template>
  <div class="screen-block">
    <div class="screen-block-title">
      <img src="@/assets/qianjiang/triangle.png" />
      {{title}}
    </div>
    <div class="screen-block-main">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'screen-block',
  props: {
    title: String
  },
  data() {
    return {}
  },
  methods: {},
  mounted() {
  }
}
</script>
<style scoped lang="scss">
.screen-block {
  --h: 48px;
  height: 100%;
  position: relative;
  border: 1px solid #08f0ff;
  box-shadow: inset 1px 1px 25px 5px #044994;

  &-title {

    display: flex;
    font-weight: bold;
    height: var(--h);
    line-height: var(--h);

    img {
    }
  }

  &-main {
    position: relative;
    height: calc(100% - var(--h));
  }
}
</style>
